package proyecto;

// @ Copyright 
// Ingeniero Juan Jos� Puello Fuentes.
import java.io.*;
public class Nodo  <T> implements Serializable{
	private T dato;
        private String claveprofe;
        private String clavenom;
	private String clave;
	private String orden;
        private double dou;

    public Nodo(T dato, String claveprofe, String clavenom, String clave, double dou, Nodo sig) {
        this.dato = dato;
        this.claveprofe = claveprofe;
        this.clavenom = clavenom;
        this.clave = clave;
        this.dou = dou;
        this.sig = sig;
    }
	private Nodo sig;
	private Nodo(T dato){
		this.dato = dato;
		clave = null;
		orden = null;
		sig = null;
	}

    public double getDou() {
        return dou;
    }

    public void setDou(double dou) {
        this.dou = dou;
    }
	public Nodo(String clave){
		dato = null;
		this.clave = clave;
		orden = null;
		sig = null;
	}

    public String getClavenom() {
        return clavenom;
    }

    public String getClaveprofe() {
        return claveprofe;
    }

    public void setClave(String clave) {
        this.clave = clave;
    }
	public Nodo(T dato, String clave){
		this.dato = dato;
		this.clave = clave;
		orden = null;
		sig = null;
	}
	public Nodo(T dato, String clave,  Nodo sig){
		this.dato = dato;
		this.clave = clave;
		orden = null;
		this.sig = sig;
	}
	public Nodo(T dato, String clave, String orden, Nodo sig){
		this.dato = dato;
		this.clave = clave;
		this.orden = orden;
		this.sig = sig;
	}

    public Nodo(T dato, String claveprofe, String clavenom, String clave) {
        this.dato = dato;
        this.claveprofe = claveprofe;
        this.clavenom = clavenom;
        this.clave = clave;
    }

    public Nodo(T dato, String claveprofe, String clavenom, String clave, String orden) {
        this.dato = dato;
        this.claveprofe = claveprofe;
        this.clavenom = clavenom;
        this.clave = clave;
        this.orden = orden;
    }

    public Nodo(T dato, String claveprofe, String clavenom, String clave, Nodo sig) {
        this.dato = dato;
        this.claveprofe = claveprofe;
        this.clavenom = clavenom;
        this.clave = clave;
        this.sig = sig;
    }

    public Nodo(T dato, String claveprofe, String clavenom, String clave, String orden, Nodo sig) {
        this.dato = dato;
        this.claveprofe = claveprofe;
        this.clavenom = clavenom;
        this.clave = clave;
        this.orden = orden;
        this.sig = sig;
    }
	public Nodo(T dato, String clave, String orden){
		this.dato = dato;
		this.clave = clave;
		this.orden = orden;
		sig = null;
	}
	public Nodo(String clave, Nodo sig){
		dato = null;
		this.clave = clave;
		orden = null;
		this.sig = sig;
	}
	public Nodo(T clave, Nodo sig){
		this.dato = dato;
		clave = null;
		orden = null;
		this.sig = sig;
	}
	
	public String getOrden(){return orden;}
	public String getClave(){return clave;}
	public T getDato(){return dato;}
	public Nodo getSig(){return sig;}
	public void setSig(Nodo sig){this.sig = sig;}
	public String toString(){return dato.toString();}
}	